<link type="text/css" rel="stylesheet" href="<?php echo STYLE."/public/default/"?>css/quickmenu.css"/>
<script type="text/javascript" src="<?php echo STYLE."/public/default/"?>js/quick_menu.js"></script>
<div id="quick_menu">
<?php $category = new Default_Model_DbTable_Menu(); $cat = $category->getAllMenu();?>
	<ul class="nav">
		<li><a class="qm" href="">&nbsp;&nbsp;Quick Menu</a>
			<ul>
			<?php foreach($cat as $c):?>
			<?php if($c["PARENT_ID"]==0):?>
				<li><a class="parent_qm" href="<?php echo DOMAIN."/".$c["CONTROLLER"]?>"><?php echo $c["MENU_NAME"]?></a>
				<?php if(sizeof($category->getMenuByParent($c["ID"],1)) > 0):?>	
					<ul>
					<?php foreach ($category->getMenuByParent($c["ID"],1) as $sub):?>
						<li><a class="parent_qm" href="<?php echo DOMAIN."/".$sub["CONTROLLER"]?>"><?php echo $sub["MENU_NAME"]?></a>
						<ul>
						<?php foreach ($category->getMenuByParent($sub["ID"],1) as $thirdSub):?>
								<li><a href="<?php echo $thirdSub["CONTROLLER"]; ?>"><?php echo $thirdSub["MENU_NAME"]; ?></a></li>
						<?php endforeach;?>
						</ul>
						</li>
					<?php endforeach;?>
					</ul>
					<?php endif;?>
				</li>
			<?php endif;?>
			<?php endforeach;?>
			</ul>
		</li>
	</ul>
	<script type="text/javascript">
		$(document).ready(function() { 
			$(".nav li").hover(function(){ 

					$(this).find('ul:first').css({visibility: "visible",display: "none"}).show(400); 
					},function(){ 
					$(this).find('ul:first').css({visibility: "hidden"}); 

					}); 
			});  
	</script>
</div><!--End#Quick_Menu-->